#ifndef WIDGET_H
#define WIDGET_H
#define TIME_OUT 1*1000

#include <QWidget>
#include <QTimer>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void timeoutSlot();

private slots:
    void on_startbutton_clicked();



    void on_stopbutton_clicked();

    void on_singlebutton_clicked();

private:
    Ui::Widget *ui;
    QTimer *timer;
    int picID;

};
#endif // WIDGET_H
